package com.example.demo.dao;

import com.example.demo.pojo.CommodityList;
import com.example.demo.pojo.Shopcart;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ShopcartDao {
    int deleteByPrimaryKey(Integer shopcartid);

    int insert(Shopcart record);

    int insertSelective(Shopcart record);

    Shopcart selectByPrimaryKey(Integer shopcartid);

    int updateByPrimaryKeySelective(Shopcart record);

    int updateByPrimaryKey(Shopcart record);
    List<Shopcart> getShopId(@Param("shopId") int  shopId);
    CommodityList getCommId(@Param("commId")int commId);
    int delShoppingCart(@Param("shopId") int shopId);
}